3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides low-level routines that you can use to find and manipulate objects in a file by reading sequentially through all the objects in it.
You can use the Q3File_GetNextObjectType function to get the type of the next object in a file.
TQ3ObjectType Q3File_GetNextObjectType (TQ3FileObject file);
The Q3File_GetNextObjectType function returns, as its function result, the type of the next object in the file object specified by the file parameter. Depending on the type of that object, you can then call Q3File_ReadObject to read it or Q3File_SkipObject to skip it.
If an error occurs, Q3File_GetNextObjectType returns the value kQ3ObjectTypeInvalid .
You can use the Q3File_IsNextObjectOfType function to determine whether the next object in a file is of a certain type.
TQ3Boolean Q3File_IsNextObjectOfType (
TQ3FileObject file,
TQ3ObjectType ofType);
You can use the Q3File_ReadObject function to read the next object in a file.
TQ3Object Q3File_ReadObject (TQ3FileObject file);
You can use the Q3File_SkipObject function to skip over an object in a file.
TQ3Status Q3File_SkipObject (TQ3FileObject file);
You can use the Q3File_IsEndOfFile function to determine whether the file position of a file object is at the end of the file.
TQ3Boolean Q3File_IsEndOfFile (TQ3FileObject file);
Previous | QD3D Book | Overview | Chapter Contents | Next |